package com.ucampus.service;


import com.ucampus.dao.welcomeMapper;
import com.ucampus.entity.welcome;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * 功能：
 * 作者： 启明星_Polaris
 * 日期：2025/1/10 下午3:33
 **/

@Service
public class welcomeService {
    private final welcomeMapper mapper;

    // 构造器注入 mapper
    public welcomeService(welcomeMapper mapper) {
        this.mapper = mapper;
    }

    // 获取所有信息
    public List<welcome> getAllInformation() {
        return mapper.getAllInformation();
    }

    // 根据 mission 查找对应的 process
    public List<String> getProcessByMission(String mission) {
        return mapper.getProcessByMission(mission);
    }
}
